package cn.client.data.remoteData.bean

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
 * 账号密码
 */
data class User(
    val account: String,
    val password: String
)

/**
 * 校验账号
 */
data class VerifyAccount(val account: String)

/**
 * 登录后的返回结果
 */
@JsonClass(generateAdapter = true)
data class LoginRes(
    @Json(name="uid")
    val uid: Int,
    @Json(name="account")
    val account: String?
)

/**
 * 提交注册信息
 */
data class PushSignUpInfo(
    val code: Int,
    val email: String
)

/**
 * 用户基础信息
 */
data class UserBasicInfo(
    val uid: Int,
    val uname: String?,
    val gender: Int,
    val birthday: Long?,
    val area: String?
)

/**
 * 用户全部信息
 */
data class UserInfo(
    val uid: Int,
    val uname: String,
    val gender: Int?,
    val email: String?,
    val area: String?,
    val birthday: Long?,
    val avatar: String,
    val background: String
)

/**
 * 用户信息卡片
 */
data class UserInfoCards(
    val uid: Int,
    val uname: String,
    val avatar: String,
)